.weather-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  padding: 30rpx;
  box-sizing: border-box;
  overflow: hidden;
}

/* 搜索区域 */
.search-section {
  margin-bottom: 30rpx;
}

.search-box {
  display: flex;
  gap: 20rpx;
  align-items: center;
  margin-bottom: 30rpx;
  width: 100%;
  position: relative;
}

.search-input {
  flex: 1;
  min-width: 400rpx;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50rpx;
  padding: 24rpx 32rpx;
  font-size: 30rpx;
  color: #333;
  border: 2rpx solid transparent;
  height: 80rpx;
  box-sizing: border-box;
  box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
  
  &:focus {
    border-color: #74b9ff;
    background: rgba(255, 255, 255, 1);
  }
  
  .placeholder {
    color: #999;
    font-size: 28rpx;
  }
}

/* 清除按钮 */
.clear-btn {
  position: absolute;
  right: 220rpx;
  top: 50%;
  transform: translateY(-50%);
  width: 40rpx;
  height: 40rpx;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 24rpx;
  z-index: 2;
  transition: all 0.3s;
  
  &:active {
    background: rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(0.9);
  }
}

/* 搜索按钮 - 支持状态切换 */
.search-btn {
  background: #bdc3c7; /* 默认灰色 */
  color: white;
  border: none;
  border-radius: 50rpx;
  padding: 0 50rpx;
  height: 80rpx;
  line-height: 80rpx;
  font-size: 30rpx;
  font-weight: 600;
  box-shadow: 0 4rpx 15rpx rgba(189, 195, 199, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 平滑的渐变过渡 */
  white-space: nowrap;
  flex-shrink: 0;
  
  /* 激活状态 */
  &.active {
    background: linear-gradient(135deg, #4cd964 0%, #44c553 100%); /* 渐变颜色 */
    box-shadow: 0 6rpx 25rpx rgba(76, 217, 100, 0.4);
    transform: translateY(-2rpx);
  }
  
  /* 禁用状态 */
  &.disabled {
    background: #bdc3c7;
    color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2rpx 8rpx rgba(189, 195, 199, 0.2);
    transform: none;
  }
  
  /* 激活状态的点击效果 */
  &.active:active {
    background: linear-gradient(135deg, #44c553 0%, #3db149 100%);
    box-shadow: 0 2rpx 10rpx rgba(76, 217, 100, 0.5);
    transform: translateY(0) scale(0.98);
  }
  
  /* 禁用状态的点击效果 */
  &.disabled:active {
    background: #bdc3c7;
    transform: none;
    box-shadow: 0 2rpx 8rpx rgba(189, 195, 199, 0.2);
  }
}

/* 搜索历史 */
.search-history {
  .history-title {
    font-size: 28rpx;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20rpx;
    display: block;
    font-weight: 500;
  }
  
  .history-list {
    display: flex;
    gap: 20rpx;
    flex-wrap: wrap;
  }
  
  .history-item {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 16rpx 28rpx;
    border-radius: 30rpx;
    font-size: 26rpx;
    backdrop-filter: blur(10rpx);
    transition: all 0.3s;
    border: 1rpx solid rgba(255, 255, 255, 0.3);
    
    &:active {
      background: rgba(255, 255, 255, 0.4);
      transform: scale(0.95);
    }
  }
}

/* 内容区域 */
.content-scroll {
  // height: calc(100vh - 200rpx);
  &::-webkit-scrollbar {
    display: none;
  }
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 当前天气卡片 */
.current-weather-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30rpx;
  padding: 40rpx;
  margin-bottom: 30rpx;
  box-shadow: 0 8rpx 40rpx rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10rpx);
}

.location-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30rpx;
  
  .city-name {
    font-size: 36rpx;
    color: #2d3436;
    font-weight: 600;
  }
  
  .weather-icon {
    font-size: 48rpx;
  }
}

.temperature-section {
  text-align: center;
  margin-bottom: 40rpx;
  
  .temperature {
    display: block;
    font-size: 96rpx;
    font-weight: 300;
    color: #2d3436;
    line-height: 1;
    margin-bottom: 10rpx;
  }
  
  .weather-desc {
    display: block;
    font-size: 32rpx;
    color: #636e72;
    font-weight: 500;
  }
}

.weather-details {
  display: flex;
  justify-content: space-around;
  border-top: 2rpx solid #f1f2f6;
  padding-top: 40rpx;
  
  .detail-item {
    text-align: center;
    
    .label {
      display: block;
      font-size: 24rpx;
      color: #636e72;
      margin-bottom: 8rpx;
    }
    
    .value {
      display: block;
      font-size: 28rpx;
      color: #2d3436;
      font-weight: 500;
    }
  }
}

/* 预报卡片 */
.forecast-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30rpx;
  padding: 40rpx;
  box-shadow: 0 8rpx 40rpx rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10rpx);
  
  .card-title {
    font-size: 32rpx;
    color: #2d3436;
    font-weight: 600;
    margin-bottom: 30rpx;
    display: block;
  }
}

.forecast-list {
  display: flex;
  justify-content: space-between;
  
  .forecast-item {
    text-align: center;
    flex: 1;
    
    .day {
      display: block;
      font-size: 26rpx;
      color: #636e72;
      margin-bottom: 20rpx;
      font-weight: 500;
    }
    
    .weather-icon {
      display: block;
      font-size: 36rpx;
      margin-bottom: 16rpx;
    }
    
    .weather {
      display: block;
      font-size: 24rpx;
      color: #74b9ff;
      margin-bottom: 12rpx;
    }
    
    .temperature-range {
      display: block;
      font-size: 26rpx;
      color: #2d3436;
      font-weight: 500;
    }
  }
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 100rpx 0;
  
  .empty-icon {
    font-size: 120rpx;
    display: block;
    margin-bottom: 30rpx;
  }
  
  .empty-text {
    font-size: 32rpx;
    color: rgba(255, 255, 255, 0.8);
    display: block;
  }
}

/* 响应式设计优化 */
@media (max-width: 480px) {
  .weather-page {
    padding: 20rpx;
    overflow-x: hidden;
  }
  
  .search-box {
    flex-direction: column;
    gap: 20rpx;
  }
  
  .search-input {
    min-width: 100%;
    width: 100%;
  }
  
  .clear-btn {
    right: 30rpx;
    top: 25rpx;
    transform: none;
  }
  
  .search-btn {
    width: 100%;
  }
  
  .temperature {
    font-size: 80rpx !important;
  }
  
  .forecast-list {
    flex-direction: column;
    gap: 30rpx;
    
    .forecast-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      text-align: left;
      
      .day, .weather-icon, .weather, .temperature-range {
        margin-bottom: 0;
        flex: 1;
        text-align: center;
      }
    }
  }
}

/* 针对平板设备的优化 */
@media (min-width: 768px) {
  .weather-page {
    max-width: 750px;
    margin: 0 auto;
    overflow-x: hidden;
  }
  
  .search-input {
    min-width: 500rpx;
  }
}
/* 搜索历史样式更新 */
.search-history {
  .history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20rpx;
  }
  
  .history-title {
    font-size: 28rpx;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
  }
  
  .clear-all-btn {
    font-size: 24rpx;
    color: rgba(255, 255, 255, 0.7);
    padding: 8rpx 16rpx;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20rpx;
    transition: all 0.3s;
    
    &:active {
      background: rgba(255, 255, 255, 0.3);
      transform: scale(0.95);
    }
  }
  
  .history-list {
    display: flex;
    gap: 20rpx;
    flex-wrap: wrap;
  }
  
  .history-item {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 16rpx 20rpx 16rpx 28rpx;
    border-radius: 30rpx;
    font-size: 26rpx;
    backdrop-filter: blur(10rpx);
    transition: all 0.3s;
    border: 1rpx solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 15rpx;
    
    &:active {
      background: rgba(255, 255, 255, 0.35);
      transform: scale(0.98);
    }
  }
  
  .history-text {
    flex: 1;
  }
  
  .delete-btn {
    width: 36rpx;
    height: 36rpx;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20rpx;
    font-weight: bold;
    transition: all 0.3s;
    
    &:active {
      background: rgba(255, 255, 255, 0.5);
      transform: scale(0.9);
    }
  }
}

/* 其他样式保持不变... */